<?

if($isApprove){
  
  $baseStatus = _NOT_ACTIVE;
  $txStatus   = _ACTIVE;
}else{
  
  $baseStatus = _ACTIVE;
  $txStatus   = _CANCELED;
}

updateInputHistory($COracle,
                   $baseStatus,
                   $txStatus,
                   $thisJobId,
                   _PEMBELIAN,
                   $srcDbInputHistory);
?>